<template>
<!--56,65,86-->
  <el-menu :default-openeds="['1', '3']" style="min-height: 100%; overflow-x: hidden"
           background-color="rgb(56,65,86)"
           text-color="#fff"
           active-text-color="#fffd0b4"
           :collapse-transition="false"
           :collapse="isCollapse"
           router
  >
    <div style="height: 60px;line-height: 60px; text-align: center">
      <img src="../assets/wdclogo.png" alt="" style="width: 50px; position: relative;top: 6px; margin-right: 5px">
      <b style="color: #eeeeee ; font-size: 20px" v-show="logoTexShow">图书交易系统</b>
    </div>

           <el-menu-item index="/">
             <template slot="title"><i class="el-icon-house"></i>
               <span slot="title">主页</span>
             </template>
           </el-menu-item>

             <el-submenu index="2">
               <template slot="title">
                 <i class="el-icon-menu"></i>
                 <span slot="title">系统管理</span>
               </template>
               <el-menu-item index="/user">
                 <i class="el-icon-s-custom"></i>
                 <span slot="title">用户管理</span>
               </el-menu-item>

               <el-menu-item index="/book">
                 <i class="el-icon-notebook-1"></i>
                 <span slot="title">商品管理</span>
               </el-menu-item>
               <el-menu-item index="/echarts">
                 <i class="el-icon-s-data"></i>
                 <span slot="title">数据统计</span>
               </el-menu-item>

             </el-submenu>

        <el-menu-item index="/borrow">
          <template slot="title"><i class="el-icon-notebook-2"></i>
            <span slot="title">购买商品</span>
          </template>
        </el-menu-item>

        <el-menu-item index="/shoppingCart">
          <template slot="title"><i class="el-icon-shopping-cart-1"></i>
            <span slot="title">购物车</span>
          </template>
        </el-menu-item>






<!--    <el-menu-item index="/">-->
<!--      <template slot="title">-->
<!--        <i class="el-icon-house"></i>-->
<!--        <span slot="title">主页</span>-->
<!--      </template>-->
<!--    </el-menu-item>-->

<!--    <el-submenu index="2">-->
<!--      <template slot="title">-->
<!--        <i class="el-icon-menu"></i>-->
<!--        <span slot="title">系统管理</span>-->
<!--      </template>-->

<!--      <el-menu-item index="2-4-1">-->
<!--        <i class="el-icon-s-custom"></i>-->
<!--        <span slot="title">用户管理</span>-->

<!--      </el-menu-item>-->
<!--    </el-submenu>-->



  </el-menu>



</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "Aside",

  props:{
    isCollapse:Boolean,
    logoTexShow : Boolean
  }
}

</script>

<style scoped>


</style>


